package cn.starrysky108.simpleerp.store.entity;

import cn.starrysky108.simpleerp.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.time.LocalDateTime;

/**
 * <p>
 * 价格促销活动表
 * </p>
 *
 * @author Carl Lee
 * @since 2021-08-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("store_activity_promotion")
@ApiModel(value = "StoreActivityPromotion对象", description = "价格促销活动表")
public class StoreActivityPromotion extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "活动名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "活动开始时间")
    @TableField("start_time")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "活动结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "是否启用，默认true")
    @TableField("is_enabled")
    private Boolean isEnabled;



}
